<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./TemplatePrincipal.xhtml">

            <ui:define name="top">
               <center>
                    <p:graphicImage value="/img/biblioteca.jpg  " width="1200" height="210"/>
                </center>
            </ui:define>

            <ui:define name="left">
            
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <h:form>
                        <p:panel header="Crear / Editar Usuario"> 
                        <h:panelGrid columns="2">
                           
                            <h:outputLabel value="Clave:" for="clave" />
                            <p:inputText id="clave" value="#{authorBean.author.clave}" title="Clave" required="true" requiredMessage="The Clave field is required.">
                               
                            </p:inputText>
                            
                            <h:outputLabel value="Nombre:" for="nombre" />
                            <p:inputText id="nombre" value="#{authorBean.author.nombre}" title="Nombre" required="true" requiredMessage="The Nombre field is required.">
                               
                            </p:inputText>
                            
                            <h:outputLabel value="ApellidoPaterno:" for="apellidoPaterno" />
                            <p:inputText id="apellidoPaterno" value="#{authorBean.author.apellidoPaterno}" title="ApellidoPaterno" required="true" requiredMessage="The ApellidoPaterno field is required.">
                               
                            </p:inputText>
                            
                            <h:outputLabel value="ApellidoMaterno:" for="apellidoMaterno" />
                            <p:inputText id="apellidoMaterno" value="#{authorBean.author.apellidoMaterno}" title="ApellidoMaterno" />
                            
                            <p:commandButton value="Aceptar" action="AutorConfirmar"/>
                            
                            <p:commandButton value="Cancelar" action="AutorLista" immediate="true"/>
                            
                            
                        </h:panelGrid>
                            </p:panel>
                    </h:form>
                </f:view>

                
                
            </ui:define>

        </ui:composition>

    </body>
</html>
